<include file="Public/min-header"/>
<link href="__PUBLIC__/plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css"/>
<script src="__PUBLIC__/plugins/daterangepicker/moment.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
<div class="wrapper">
    <include file="Public/breadcrumb"/>
    <section class="content">
        <div class="container-fluid">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i>汇款记录</h3>
                </div>
                <div class="panel-body">
                    <div class="navbar navbar-default">
                        <form id="search-form2" class="navbar-form form-inline" method="get"
                              action="{:U('store_remittance')}">
                            <div class="form-group">
                                <label for="input-order-id" class="control-label">店铺ID:</label>
                                <div class="input-group">
                                    <input type="text" class="form-control" id="user_id" placeholder="店铺id"
                                           value="{$Think.request.store_id}" name="store_id"/>
                                </div>

                                <label for="input-order-id" class="control-label">收款账号:</label>
                                <div class="input-group">
                                    <input type="text" class="form-control" id="input-order-id" placeholder="收款账号"
                                           value="{$Think.request.account_bank}" name="account_bank"/>
                                </div>
                                <label for="input-order-id" class="control-label">收款账户名:</label>
                                <div class="input-group">
                                    <input type="text" class="form-control" id="input-order-id" placeholder="收款账户名"
                                           value="{$Think.request.account_name}" name="account_name"/>
                                </div>

                                <div class="input-group margin">
                                    <div class="input-group-addon">
                                        时间<i class="fa fa-calendar"></i>
                                    </div>
                                    <input type="text" id="start_time" value="{$create_time}" name="create_time"
                                           class="form-control pull-right" style="width: 200px">
                                </div>
                            </div>
                            <div class="form-group">
                                <button class="btn btn-primary" id="button-filter search-order" type="submit"><i
                                        class="fa fa-search"></i> 筛选
                                </button>
                            </div>
                        </form>
                    </div>
                    <div id="ajax_return">
                        <div class="table-responsive">
                            <table class="table table-bordered table-hover">
                                <thead>
                                <tr>
                                    <th class="sorting text-left">记录ID</th>
                                    <th class="sorting text-left">店铺ID</th>
                                    <th class="sorting text-left">店铺名称</th>
                                    <th class="sorting text-left">银行名称</th>
                                    <th class="sorting text-left">银行账号</th>
                                    <th class="sorting text-left">银行账户</th>
                                    <th class="sorting text-left">申请金额</th>
                                    <th class="sorting text-left">状态</th>
                                    <th class="sorting text-left">操作时间</th>
                                    <th class="sorting text-left">备注</th>
                                    <!--<th class="sorting text-left">申请提现记录</th>-->
                                </tr>
                                </thead>
                                <tbody>
                                <volist name="list" id="v">
                                    <tr>
                                        <td class="text-left">
                                            <a href="{:U('editStoreWithdrawals',array('id'=>$v[withdrawals_id]))}">{$v.id}</a>
                                        </td>
                                        <td class="text-left">
                                            {$v.store_id}
                                        </td>
                                        <td class="text-left">
                                            <a href="{:U('Store/store_info',array('store_id'=>$v[store_id]))}">{$v.store_name}</a>
                                        </td>
                                        <td class="text-left">{$v.bank_name}</td>
                                        <td class="text-left">{$v.account_bank}</td>
                                        <td class="text-left">{$v.account_name}</td>
                                        <td class="text-left">{$v.money}</td>
                                        <td class="text-left">支付成功</td>
                                        <td class="text-left">{$v.create_time|date="Y-m-d H:i",###}</td>
                                        <td class="text-left">{$v.remark}</td>
                                        <!--<td class="text-left"><a href="{:U('Admin/Distribut/editWithdrawals',array('id'=>$v[withdrawals_id]))}">查看</a></td>-->
                                    </tr>
                                </volist>
                                </tbody>
                            </table>
                        </div>

                        <div class="row">
                            <div class="col-sm-6 text-left"></div>
                            <div class="col-sm-6 text-right">{$show}</div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        <!-- /.row -->
    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script>

    $(document).ready(function () {
        $('#start_time').daterangepicker({
            format: "YYYY-MM-DD",
            singleDatePicker: false,
            showDropdowns: true,
            minDate: '2016-01-01',
            maxDate: '2030-01-01',
            startDate: '2016-01-01',
            locale: {
                applyLabel: '确定',
                cancelLabel: '取消',
                fromLabel: '起始时间',
                toLabel: '结束时间',
                customRangeLabel: '自定义',
                daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
                monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
                firstDay: 1
            }
        });
    });
</script>
</body>
</html>